<template>
  <div class="box" :title="title + ':' + data">
    <div class="imgbox">{{ data }}</div>
    <p class="text">{{ title }}</p>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
    },
    data: {
      type: Number,
    },
  },
};
</script>
<style lang="scss" scoped>
.box {
  position: relative;
  cursor: pointer;
}
.imgbox {
  width: 2.6vw;
  max-width: 2.6vw;
  height: 2.6vw;
  background: url("../assets/images/icon/icon.png") no-repeat center;
  background-size: 100%;
  line-height: 2.6vw;
  font-size: 0.5vw;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0vh;
  color: #fff683;
  text-align: center;
  margin: 0 auto;
}
.text {
  padding-top: 0.2vh;
  font-size: 0.45vw;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0vw;
  color: #ffffff;
  text-align: center;
}
</style>
